﻿using System;
using System.ComponentModel.DataAnnotations;
namespace Orange.Logistics.Models {
    public class Store {
        [Key]
        [Column("Storeid")]
        [Required(ErrorMessage = "*")]
        public int Storeid { get; set; }

        [Column("Names"), MaxLength(50, ErrorMessage = "输入过长")]
        [Required(ErrorMessage = "*")]
        public string Names { get; set; }

        [Column("Shortname"), MaxLength(50, ErrorMessage = "输入过长")]
        public string Shortname { get; set; }

        [Column("Mncode"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Mncode { get; set; }

        [Column("Principals"), MaxLength(20, ErrorMessage = "输入过长")]
        [Required(ErrorMessage = "*")]
        public string Principals { get; set; }

        [Column("Phones"), MaxLength(20, ErrorMessage = "输入过长")]
        [Required(ErrorMessage = "*")]
        [DataType(DataType.PhoneNumber)]
        public string Phones { get; set; }

        [Column("Mobiles"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Mobiles { get; set; }

        [Column("Faxs"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Faxs { get; set; }

        [Column("Totalarea")]
        public decimal? Totalarea { get; set; }

        [Column("Indoorarea")]
        public decimal? Indoorarea { get; set; }

        [Column("Outdoorarea")]
        public decimal? Outdoorarea { get; set; }

        [Column("Restoreid")]
        public int? Restoreid { get; set; }

        [Column("Address"), MaxLength(500, ErrorMessage = "输入过长")]
        public string Address { get; set; }

        [Column("Remark"), MaxLength(255, ErrorMessage = "输入过长")]
        [DataType(DataType.MultilineText)]
        public string Remark { get; set; }

        [Column("Status"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Status { get; set; }

        [Column("Modifyuser"), MaxLength(12, ErrorMessage = "输入过长")]
        public string Modifyuser { get; set; }

        [Column("Modifytime")]
        public DateTime? Modifytime { get; set; }

    }
}
